package com.guodi.map.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.guodi.map.entity.MapFunctionAuth;
import com.guodi.map.mapper.MapFunctionAuthMapper;
import com.guodi.map.service.IMapFunctionAuthService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @描述：功能参数授权 服务类
 * @作者: 代鹏刚
 * @日期: 2020-12-31
 */
@Service
public class MapFunctionAuthServiceImpl extends ServiceImpl<MapFunctionAuthMapper, MapFunctionAuth> implements IMapFunctionAuthService {

    @Override
    public void removeByMaps(String roleId, String functionId) {
        baseMapper.removeByMaps(roleId, functionId);
    }

    @Override
    public List<MapFunctionAuth> getFunctionByRoleIds(String[] roleIds) {
        return baseMapper.getFunctionByRoleIds(roleIds);
    }

    @Override
    public void deleteByIds(String[] ids) {
        baseMapper.deleteByIds(ids);
    }
}